package gsw.demo.mvp.demo.dagger.bean;

public class UserA {
    private String name;
    private String pwd;

    public UserA() {
    }

    public UserA(String name, String pwd) {
        this.name = name;
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserA userA = (UserA) o;

        if (name != null ? !name.equals(userA.name) : userA.name != null) return false;
        return pwd != null ? pwd.equals(userA.pwd) : userA.pwd == null;

    }

    @Override
    public int hashCode() {
        int result = name != null ? name.hashCode() : 0;
        result = 31 * result + (pwd != null ? pwd.hashCode() : 0);
        return result;
    }
}
